<?php

//web 权限目录

define('DS', DIRECTORY_SEPARATOR);
define('PS', PATH_SEPARATOR);

define('ROOT_PATH', dirname(__DIR__) . DS);

define('FRAMEWORK_NAME', 'App');

define('PROJECT_NAME', 'xinqdian');

define('PHP_FILE_SUFFIX', '.php');

define('PROJECT_PATH', ROOT_PATH . PROJECT_NAME . DS);

define('REQUEST_TIME', time());

define('SYS_INIT_TIME', microtime(TRUE));

//code form: wordpress
//$_SERVER['PATH_INFO'] = preg_replace( '/.*\/wp-app\.php/', '', $_SERVER['REQUEST_URI'] );

$project_configs = include PROJECT_PATH . 'configs/config.php';

require ROOT_PATH . FRAMEWORK_NAME . '/Loader.php';

App\Bootstrap::createWebApplication($project_configs)->run();